// 创建应用数据库用户
db.createUser({
    user: "mcode",
    pwd: "mcode_password",
    roles: [
        {
            role: "readWrite",
            db: "mcode"
        }
    ]
}); 